module Projects::Index::ProjectsHelper
  # 刷新项目
  def remote_function_to_reload_project_in_project_index(project)
    remote_function :update => "project_info_#{project.id}",
      :url => title_project_url(project),
      :method => :get
  end

  # 刷新项目统计
  def remote_function_to_reload_project_stat_in_project_index
    remote_function :update => "projects_stat",
      :url => stat_projects_url,
      :method => :get
  end
end
